#include "Obstacle.h"
#include "Game.h"
#include "StringLib.h"
#include "Util.h"

Obstacle::Obstacle(GenericType type) : GameObject(type) {
	m_blocking = false;
}

Obstacle::Obstacle(GenericType type, std::ifstream& file) : GameObject(type) {
	m_blocking = false;
}

Obstacle::~Obstacle() {
}

void Obstacle::save(std::ofstream& file) const {
}

void Obstacle::logDetails(TextLog& log) const {
	GameObject::logDetails(log);
	log.addBlankLine();
	if(m_blocking)
		log.addLine(g_stringLib->getTextString(ST_OBSTACLE_BLOCKED));
	else
		log.addLine(g_stringLib->getTextString(ST_OBSTACLE_STAND));
}

std::string Obstacle::getColoredName() const {
	return "\r4" + getName() + "\r4";
}

std::string Obstacle::getColoredBasicName() const {
	return "\r4" + getBasicName() + "\r4";
}
